package chapter7.io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

/**
 * Created by qpx on 2018/5/14.
 */
public class PrintStreamTest {

    public static void main(String[] args) throws FileNotFoundException {
        System.setOut(new PrintStream(new FileOutputStream("D://print.txt",true)));
        System.out.print("hehhehe");
    }
}
